﻿using B.X.Rabbit.Domain.Autofac;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.X.Rabbit.Domain.商品
{
    /// <summary>
    /// 溯源信息
    /// </summary>
    public class Traceabilitys:BaseFieId
    {
        /// <summary>
        /// 溯源信息Id
        /// </summary>
        [Key]
        public int TraceabilityId { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        public int GoodsId { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? ProductionBatch { get; set; }
        /// <summary>
        /// 保质期(天)
        /// </summary>
        public int ExpirationDate { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string? ProductionLicense { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? ProductionEnterprise { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string? GoverImage { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
